package com.zsrt.java.day20161223.cg.practic;

import org.junit.Test;

public class DoWhileTest {
	@Test
	public void doWhileTest(){
		int begin = 19;
		int end = 99;
		int sum = 0;
		do{
			sum = sum + begin;
			begin = begin + 20;
		}while(begin <= end);
		System.out.println(sum);
	}
	
}
